package com.itheima.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CheckGroupAndItemDao {
    @Insert("insert into t_checkgroup_checkitem(checkgroup_id, checkitem_id) VALUES (#{checkGroupId},#{checkitemId});")
    void insert(Integer checkGroupId, Integer checkitemId);

    @Delete("delete from t_checkgroup_checkitem where checkgroup_id=#{checkGroupId};")
    void deleteBycheckGroupId(Integer checkGroupId);

    @Delete("delete from t_checkgroup_checkitem where checkitem_id=#{checkItemId};")
    void deleteBycheckItemId(Integer checkItemId);
}
